package com.cx.demo;

import com.cx.demo.bean.Hello;
import com.cx.demo.configure.ScanConfigure;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author xiongmin
 * @version 1.0
 * @date 20-8-19 下午2:28
 */
public class IocApp3 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(ScanConfigure.class);
        Hello hello = (Hello)ctx.getBean("hello");
        hello.sayHello();
    }
}
